package cn.edu.sjtu.se.dslab.dao;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.auth.User;
import cn.edu.sjtu.se.dslab.exception.DBException;
import cn.edu.sjtu.se.dslab.project.Project;
import cn.edu.sjtu.se.dslab.project.UserProject;

public interface IUserProjectDao {

	public List<UserProject> getListByProject(Project project);
	
	public List<UserProject> getListByUser(User user);
	
	public void save(UserProject userProject);
	
	public boolean delete(UserProject userProject);
	
	public boolean deleteById(long id);
	
	public boolean update(UserProject userProject);
	
	public PageBean<UserProject> getPageBeanByProject(int pageNo,Project project) throws DBException;
}
